package elaborator.tests;

import java.util.Map;
import java.util.Set;

import elaborator.utils.DataGenerator;

public class Test1 {

	public static void main(String[] args) {

		DataGenerator.setDataGenerator(new TestDataGenerator());
		
		int[] temps = DataGenerator.getDataGenerator().getTemps();
		int diameter = DataGenerator.getDataGenerator().getDiameter();
		Map<Double, String> elements = DataGenerator.getDataGenerator().getComposition();
		
		System.out.println("Temperature "+temps[0]+" "+temps[1]);

		System.out.println("\nDiametro "+ diameter);
		
		System.out.println("\nElementi\n");
		Set<Double> keys = elements.keySet();
		//System.out.println(elements); che potenza!
//		Set<String> orderedkeys = new TreeSet<String>();
//		orderedkeys.addAll(keys);
		
//		for (String key : orderedkeys) {
//			Double value = elements.get(key);	
//			System.out.println(key+" "+ value);
//		}
		for (Double key : keys) {
			String value = elements.get(key);	
			System.out.println(key+" "+ value);
		}


	}
}
